package JavaSe;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}8:42
 */
@Annotion(id=3,msg = "hello")
public class AnnotionTest {


    public static void main(String[] args) {
        boolean hasAnnotion = AnnotionTest.class.isAnnotationPresent(Annotion.class);
        if (hasAnnotion){
            Annotion annotion = AnnotionTest.class.getAnnotation(Annotion.class);
            System.out.println("id"+annotion.id());
            System.out.println("msg"+annotion.msg());
        }
    }
}
